assert given a log level equal to the current level returns true